﻿using System.Collections.Generic;

namespace Messenia.Data.Interfaces
{
public interface IModel<T> {
        IList<T> GetAll(int idUser);
        /// <summary>
        /// Save or update given object in the store
        /// </summary>
        /// <typeparam name="T">Object Type</typeparam>
        /// <param name="item">Item to save</param>
        /// <returns></returns>
        void Save(object entity);      
        /// <summary>
        /// Detele given object from the store
        /// </summary>
        /// <typeparam name="T">Object Type</typeparam>
        /// <param name="item">Item to delete</param>  
        void Delete(object entity);
    }
}
